package xyz.zhouzhaodong.crm.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import xyz.zhouzhaodong.crm.entity.Todo;

import java.util.Date;

/**
 * 待办表
 *
 * @author zhouzhaodong
 * @since 2020-06-16
 */
public class TodoDto extends Todo {

    /**
     * 用户名称
     */
    private String staffName;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reminderTimeStart;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reminderTimeEnd;

    /**
     * 每页的条数
     */
    private int pageSize;

    /**
     * 第几页
     */
    private int pageNo;

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Date getReminderTimeStart() {
        return reminderTimeStart;
    }

    public void setReminderTimeStart(Date reminderTimeStart) {
        this.reminderTimeStart = reminderTimeStart;
    }

    public Date getReminderTimeEnd() {
        return reminderTimeEnd;
    }

    public void setReminderTimeEnd(Date reminderTimeEnd) {
        this.reminderTimeEnd = reminderTimeEnd;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }
}
